package com.jeomo.sys.starter.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * <h3>jeomo</h3>
 * <p>权限</p>
 * 权限表并不存在，
 * 每项权限都由前端和后端共同商定，不需要新建
 * @author : qibotian
 * @date : 2020-09-28 08:59
 **/
public class Permission implements Serializable {

    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        Permission that = (Permission) o;
        return Objects.equals(code, that.code);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), code);
    }
}
